<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><s:text name="WELCOME TO Realtor Assistant" /></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>  
  <body>    
   	<s:include value="/include/header.jsp"></s:include>
   	<s:if test="%{#session.userId != null}">
   	<table><tr><td><s:text name="user.EId" /></td><td><s:property value="user.EId" /></td></tr>
   	
   	<tr><td><s:text name="user.username" /></td><td><s:property value="user.username" /></td></tr>
   	
   	<tr><td><s:text name="user.UFullname" /></td><td><s:property value="user.UFullname" /></td></tr>
   	
   	<tr><td><s:text name="user.USsn" /></td><td><s:property value="user.USsn" /></td></tr>
   
   	<tr><td><s:text name="user.URole" /></td><td><s:property value="user.URole" /></td></tr>
   	
   	<tr><td><s:text name="user.UEmail" /></td><td><s:property value="user.UEmail" /></td></tr>
   	
   	<tr><td><s:text name="user.UTelNo" /></td><td><s:property value="user.UTelNo" /></td></tr>
   	<tr><td><s:text name="user.UDescription" /></td><td><s:property value="user.UDescription" /></td></tr>
	</table>
    <a href="<s:url includeParams="none" namespace="/" action="user/show_the_SCs" ></s:url>">
		<s:text name="show the Service Contracts" />
	</a>
	<br/>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_all_customers" ></s:url>">
		<s:text name="show all customers" />
	</a>
	<br/>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_all_real_estates" ></s:url>">
		<s:text name="show all the real estates'" />
	</a>
	<br/>
   	</s:if>
  </body>
</html>
